package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class IntegralExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public IntegralExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIntegralnoIsNull() {
            addCriterion("integralno is null");
            return (Criteria) this;
        }

        public Criteria andIntegralnoIsNotNull() {
            addCriterion("integralno is not null");
            return (Criteria) this;
        }

        public Criteria andIntegralnoEqualTo(String value) {
            addCriterion("integralno =", value, "integralno");
            return (Criteria) this;
        }

        public Criteria andIntegralnoNotEqualTo(String value) {
            addCriterion("integralno <>", value, "integralno");
            return (Criteria) this;
        }

        public Criteria andIntegralnoGreaterThan(String value) {
            addCriterion("integralno >", value, "integralno");
            return (Criteria) this;
        }

        public Criteria andIntegralnoGreaterThanOrEqualTo(String value) {
            addCriterion("integralno >=", value, "integralno");
            return (Criteria) this;
        }

        public Criteria andIntegralnoLessThan(String value) {
            addCriterion("integralno <", value, "integralno");
            return (Criteria) this;
        }

        public Criteria andIntegralnoLessThanOrEqualTo(String value) {
            addCriterion("integralno <=", value, "integralno");
            return (Criteria) this;
        }

        public Criteria andIntegralnoLike(String value) {
            addCriterion("integralno like", value, "integralno");
            return (Criteria) this;
        }

        public Criteria andIntegralnoNotLike(String value) {
            addCriterion("integralno not like", value, "integralno");
            return (Criteria) this;
        }

        public Criteria andIntegralnoIn(List<String> values) {
            addCriterion("integralno in", values, "integralno");
            return (Criteria) this;
        }

        public Criteria andIntegralnoNotIn(List<String> values) {
            addCriterion("integralno not in", values, "integralno");
            return (Criteria) this;
        }

        public Criteria andIntegralnoBetween(String value1, String value2) {
            addCriterion("integralno between", value1, value2, "integralno");
            return (Criteria) this;
        }

        public Criteria andIntegralnoNotBetween(String value1, String value2) {
            addCriterion("integralno not between", value1, value2, "integralno");
            return (Criteria) this;
        }

        public Criteria andUnoIsNull() {
            addCriterion("uno is null");
            return (Criteria) this;
        }

        public Criteria andUnoIsNotNull() {
            addCriterion("uno is not null");
            return (Criteria) this;
        }

        public Criteria andUnoEqualTo(String value) {
            addCriterion("uno =", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoNotEqualTo(String value) {
            addCriterion("uno <>", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoGreaterThan(String value) {
            addCriterion("uno >", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoGreaterThanOrEqualTo(String value) {
            addCriterion("uno >=", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoLessThan(String value) {
            addCriterion("uno <", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoLessThanOrEqualTo(String value) {
            addCriterion("uno <=", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoLike(String value) {
            addCriterion("uno like", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoNotLike(String value) {
            addCriterion("uno not like", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoIn(List<String> values) {
            addCriterion("uno in", values, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoNotIn(List<String> values) {
            addCriterion("uno not in", values, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoBetween(String value1, String value2) {
            addCriterion("uno between", value1, value2, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoNotBetween(String value1, String value2) {
            addCriterion("uno not between", value1, value2, "uno");
            return (Criteria) this;
        }

        public Criteria andCrnoIsNull() {
            addCriterion("crno is null");
            return (Criteria) this;
        }

        public Criteria andCrnoIsNotNull() {
            addCriterion("crno is not null");
            return (Criteria) this;
        }

        public Criteria andCrnoEqualTo(String value) {
            addCriterion("crno =", value, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoNotEqualTo(String value) {
            addCriterion("crno <>", value, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoGreaterThan(String value) {
            addCriterion("crno >", value, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoGreaterThanOrEqualTo(String value) {
            addCriterion("crno >=", value, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoLessThan(String value) {
            addCriterion("crno <", value, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoLessThanOrEqualTo(String value) {
            addCriterion("crno <=", value, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoLike(String value) {
            addCriterion("crno like", value, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoNotLike(String value) {
            addCriterion("crno not like", value, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoIn(List<String> values) {
            addCriterion("crno in", values, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoNotIn(List<String> values) {
            addCriterion("crno not in", values, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoBetween(String value1, String value2) {
            addCriterion("crno between", value1, value2, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoNotBetween(String value1, String value2) {
            addCriterion("crno not between", value1, value2, "crno");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationIsNull() {
            addCriterion("online_duration is null");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationIsNotNull() {
            addCriterion("online_duration is not null");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationEqualTo(String value) {
            addCriterion("online_duration =", value, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationNotEqualTo(String value) {
            addCriterion("online_duration <>", value, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationGreaterThan(String value) {
            addCriterion("online_duration >", value, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationGreaterThanOrEqualTo(String value) {
            addCriterion("online_duration >=", value, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationLessThan(String value) {
            addCriterion("online_duration <", value, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationLessThanOrEqualTo(String value) {
            addCriterion("online_duration <=", value, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationLike(String value) {
            addCriterion("online_duration like", value, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationNotLike(String value) {
            addCriterion("online_duration not like", value, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationIn(List<String> values) {
            addCriterion("online_duration in", values, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationNotIn(List<String> values) {
            addCriterion("online_duration not in", values, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationBetween(String value1, String value2) {
            addCriterion("online_duration between", value1, value2, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationNotBetween(String value1, String value2) {
            addCriterion("online_duration not between", value1, value2, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andAddIntegralIsNull() {
            addCriterion("add_integral is null");
            return (Criteria) this;
        }

        public Criteria andAddIntegralIsNotNull() {
            addCriterion("add_integral is not null");
            return (Criteria) this;
        }

        public Criteria andAddIntegralEqualTo(String value) {
            addCriterion("add_integral =", value, "addIntegral");
            return (Criteria) this;
        }

        public Criteria andAddIntegralNotEqualTo(String value) {
            addCriterion("add_integral <>", value, "addIntegral");
            return (Criteria) this;
        }

        public Criteria andAddIntegralGreaterThan(String value) {
            addCriterion("add_integral >", value, "addIntegral");
            return (Criteria) this;
        }

        public Criteria andAddIntegralGreaterThanOrEqualTo(String value) {
            addCriterion("add_integral >=", value, "addIntegral");
            return (Criteria) this;
        }

        public Criteria andAddIntegralLessThan(String value) {
            addCriterion("add_integral <", value, "addIntegral");
            return (Criteria) this;
        }

        public Criteria andAddIntegralLessThanOrEqualTo(String value) {
            addCriterion("add_integral <=", value, "addIntegral");
            return (Criteria) this;
        }

        public Criteria andAddIntegralLike(String value) {
            addCriterion("add_integral like", value, "addIntegral");
            return (Criteria) this;
        }

        public Criteria andAddIntegralNotLike(String value) {
            addCriterion("add_integral not like", value, "addIntegral");
            return (Criteria) this;
        }

        public Criteria andAddIntegralIn(List<String> values) {
            addCriterion("add_integral in", values, "addIntegral");
            return (Criteria) this;
        }

        public Criteria andAddIntegralNotIn(List<String> values) {
            addCriterion("add_integral not in", values, "addIntegral");
            return (Criteria) this;
        }

        public Criteria andAddIntegralBetween(String value1, String value2) {
            addCriterion("add_integral between", value1, value2, "addIntegral");
            return (Criteria) this;
        }

        public Criteria andAddIntegralNotBetween(String value1, String value2) {
            addCriterion("add_integral not between", value1, value2, "addIntegral");
            return (Criteria) this;
        }

        public Criteria andNosIsNull() {
            addCriterion("nos is null");
            return (Criteria) this;
        }

        public Criteria andNosIsNotNull() {
            addCriterion("nos is not null");
            return (Criteria) this;
        }

        public Criteria andNosEqualTo(String value) {
            addCriterion("nos =", value, "nos");
            return (Criteria) this;
        }

        public Criteria andNosNotEqualTo(String value) {
            addCriterion("nos <>", value, "nos");
            return (Criteria) this;
        }

        public Criteria andNosGreaterThan(String value) {
            addCriterion("nos >", value, "nos");
            return (Criteria) this;
        }

        public Criteria andNosGreaterThanOrEqualTo(String value) {
            addCriterion("nos >=", value, "nos");
            return (Criteria) this;
        }

        public Criteria andNosLessThan(String value) {
            addCriterion("nos <", value, "nos");
            return (Criteria) this;
        }

        public Criteria andNosLessThanOrEqualTo(String value) {
            addCriterion("nos <=", value, "nos");
            return (Criteria) this;
        }

        public Criteria andNosLike(String value) {
            addCriterion("nos like", value, "nos");
            return (Criteria) this;
        }

        public Criteria andNosNotLike(String value) {
            addCriterion("nos not like", value, "nos");
            return (Criteria) this;
        }

        public Criteria andNosIn(List<String> values) {
            addCriterion("nos in", values, "nos");
            return (Criteria) this;
        }

        public Criteria andNosNotIn(List<String> values) {
            addCriterion("nos not in", values, "nos");
            return (Criteria) this;
        }

        public Criteria andNosBetween(String value1, String value2) {
            addCriterion("nos between", value1, value2, "nos");
            return (Criteria) this;
        }

        public Criteria andNosNotBetween(String value1, String value2) {
            addCriterion("nos not between", value1, value2, "nos");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}